ScxV6Areas.Count Method
Returns the number of areas of interest in the collection.
The following example written in VB.NET lists all the Areas of Interest in the World area, along with their position in the collection.
Dim Svr As ScxV6DbClient.ScxV6Server
Dim Areas As ScxV6DbClient.ScxV6Areas
' Connect to the server
Svr = New ScxV6DbClient.ScxV6Server()
Svr.Connect("MAIN", "", "")
' Find the area of interest we want to move
Areas = Svr.RootArea.List
Dim Count As Integer
Dim Position As Integer
Count = Areas.Count
For Position = 1 To Count
System.Console.WriteLine("{0} : {1}", Position, Areas(Position).Name)
Next
' Disconnect
Svr.Disconnect()